Optimal. Leaf size=62 \[ a^2 \text{PolyLog}(2,-a x)-a^2 \text{PolyLog}(2,a x)+\frac{1}{2} a^4 x^2 \tanh ^{-1}(a x)+\frac{a^3 x}{2}-\frac{\tanh ^{-1}(a x)}{2 x^2}-\frac{a}{2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0941136, antiderivative size = 62, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {6012, 5916, 325, 206, 5912, 321} \[ a^2 \text{PolyLog}(2,-a x)-a^2 \text{PolyLog}(2,a x)+\frac{1}{2} a^4 x^2 \tanh ^{-1}(a x)+\frac{a^3 x}{2}-\frac{\tanh ^{-1}(a x)}{2 x^2}-\frac{a}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6012
Rule 5916
Rule 325
Rule 206
Rule 5912
Rule 321
Rubi steps
\begin{align*} \int \frac{\left (1-a^2 x^2\right )^2 \tanh ^{-1}(a x)}{x^3} \, dx &=\int \left (\frac{\tanh ^{-1}(a x)}{x^3}-\frac{2 a^2 \tanh ^{-1}(a x)}{x}+a^4 x \tanh ^{-1}(a x)\right ) \, dx\\ &=-\left (\left (2 a^2\right ) \int \frac{\tanh ^{-1}(a x)}{x} \, dx\right )+a^4 \int x \tanh ^{-1}(a x) \, dx+\int \frac{\tanh ^{-1}(a x)}{x^3} \, dx\\ &=-\frac{\tanh ^{-1}(a x)}{2 x^2}+\frac{1}{2} a^4 x^2 \tanh ^{-1}(a x)+a^2 \text{Li}_2(-a x)-a^2 \text{Li}_2(a x)+\frac{1}{2} a \int \frac{1}{x^2 \left (1-a^2 x^2\right )} \, dx-\frac{1}{2} a^5 \int \frac{x^2}{1-a^2 x^2} \, dx\\ &=-\frac{a}{2 x}+\frac{a^3 x}{2}-\frac{\tanh ^{-1}(a x)}{2 x^2}+\frac{1}{2} a^4 x^2 \tanh ^{-1}(a x)+a^2 \text{Li}_2(-a x)-a^2 \text{Li}_2(a x)\\ \end{align*}
Mathematica [A] time = 0.0611303, size = 62, normalized size = 1. \[ -\frac{-2 a^2 x^2 \text{PolyLog}(2,-a x)+2 a^2 x^2 \text{PolyLog}(2,a x)-a^3 x^3-a^4 x^4 \tanh ^{-1}(a x)+a x+\tanh ^{-1}(a x)}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.042, size = 80, normalized size = 1.3 \begin{align*}{\frac{{a}^{4}{x}^{2}{\it Artanh} \left ( ax \right ) }{2}}-2\,{a}^{2}{\it Artanh} \left ( ax \right ) \ln \left ( ax \right ) -{\frac{{\it Artanh} \left ( ax \right ) }{2\,{x}^{2}}}+{a}^{2}{\it dilog} \left ( ax \right ) +{a}^{2}{\it dilog} \left ( ax+1 \right ) +{a}^{2}\ln \left ( ax \right ) \ln \left ( ax+1 \right ) +{\frac{x{a}^{3}}{2}}-{\frac{a}{2\,x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.953586, size = 111, normalized size = 1.79 \begin{align*} \frac{1}{2} \,{\left (2 \,{\left (\log \left (a x + 1\right ) \log \left (x\right ) +{\rm Li}_2\left (-a x\right )\right )} a - 2 \,{\left (\log \left (-a x + 1\right ) \log \left (x\right ) +{\rm Li}_2\left (a x\right )\right )} a + \frac{a^{2} x^{2} - 1}{x}\right )} a + \frac{1}{2} \,{\left (a^{4} x^{2} - 2 \, a^{2} \log \left (x^{2}\right ) - \frac{1}{x^{2}}\right )} \operatorname{artanh}\left (a x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (a^{4} x^{4} - 2 \, a^{2} x^{2} + 1\right )} \operatorname{artanh}\left (a x\right )}{x^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a x - 1\right )^{2} \left (a x + 1\right )^{2} \operatorname{atanh}{\left (a x \right )}}{x^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a^{2} x^{2} - 1\right )}^{2} \operatorname{artanh}\left (a x\right )}{x^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]